package edu.sctu.practice.class02.shilaihong.text.text12;

/**
 * Created by admin on 2015/10/15.
 */
public class Car {
    private int numOfWheels;
    private String color;
    private double weight;

    public Car() {
    }

    public Car(int num, String c, double w) {
        this.numOfWheels = num;
        this.color = c;
        this.weight = w;
    }

    public void SpeedUp() {
        System.out.println("I'm speeding up!");
    }

    public void SpeedDown() {
        System.out.println("I'm speeding down!");
    }

    public void Stop() {
        System.out.println("I have stoped!");
    }

    public void display() {
        System.out.println("车轮有：" + numOfWheels + "个" + "颜色为：" + color + "可载重：" + weight + "吨");
    }
}
